<template>
  <div>
    <input type="text" @keydown.esc="fn" />
  </div>
</template>
<script>
export default {
  methods: {
    fn() {
      console.log("fn");
    },
  },
};
</script>
<style>
</style>
